<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function hd(msg) {
        console.log(msg);
      }

      hd("hello,world");

      let cms = function (title) {
        console.log(title);
      };
      cms("hello,world");

      let user = {
        setUsername: function (name) {
          this.name = name;
        },
        getUsername: function () {
          return this.name;
        },
      };
      user.setUsername("tomCat");
      console.log(user.getUsername());
    </script>
  </body>
</html>
